package org.footballmanager.pandafootball.system.domain;

import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 站内信
 */
@Entity
@Setter
@Getter
@ToString
public class FootZnx extends BaseEntity implements Serializable {
    @Column(name = "sender")
    @NonNull
    private Long sender;
    @Transient
    private String senderName;
    @Column(name = "resiver")
    @NonNull
    private Long resiver;
    @Transient
    private String resiverName;
    @Column(name = "content")
    @NonNull
    private String content;
    @Column(name = "url")
    private String url;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "send_time", length = 19)
    private Date sendTime;
    @Column(name = "readed")
    private Boolean readed;
    @Column(name = "logo")
    private Long logo;
    @Transient
    private String logoUrl;
    @Transient
    private String sendTimeStr;
}